package com.jd.pet.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.swing.border.TitledBorder;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author 小林同学
 * @version 1.0
 * @description: TODO
 * @date 2023/3/16 16:33
 */
@Data
public class SearchMasterMsgDto {
    @NotBlank(message = "标题不能为空")
    private String title;
    @NotBlank(message = "宠物名称不能为空")
    private String name;
    @NotNull(message = "宠物年龄不能为空")
    private Integer age;
    @NotNull(message = "宠物性别不能为空")
    private Integer gender;
    @NotNull(message = "宠物类型不能为空")
    private Integer petType;
    @NotNull(message = "宠物售价不能为空")
    private Double price;
    @NotBlank(message = "宠物毛色不能为空")
    private String coatColor;

    private String resources;
    @NotBlank(message = "地址不能为空")
    private String address;
}
